package cn.cvs.service;

import cn.cvs.pojo.Supplier;

import java.util.List;

public interface SysSupplierService {

    //根据供应商编码和供应商名称查询
    List<Supplier> queryChoose(String supCode,String supName);

    //条件分页查询 supCode + supName
    List<Supplier>  querySupplier(String supCode,String supName,Integer pageNo,Integer pageSize);

    //参与条件分页的总记录数
    int queryCount(String supCode,String supName);

    //增加
    int addSupplier(Supplier supplier);

    //依据编号查询供应商
    Supplier queryById(Integer id);

    //修改供应商
    int updateSupplier(Supplier supplier);

    //删除
    int delete(Integer id);

    /**
     * 获取所有供应商信息
     *
     * @return
     * @throws Exception
     */
    List<Supplier> querySupplierList();
    //查询所有供货商
    List<Supplier>queryAllSupplier();
}
